package com.six.backend.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author skyler
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel("用户")
public class User {
    @NotNull
    @ApiModelProperty("用户账户")
    private String account;

    @ApiModelProperty("用户名字")
    private String name;

    @ApiModelProperty("用户密码")
    private String password;

    @ApiModelProperty("用户状态")
    private Boolean status;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("用户创建时间")
    private Date createTime;

    @ApiModelProperty("用户电话")
    private String phone;

    @ApiModelProperty("用户邮箱")
    private String email;

    @ApiModelProperty("用户角色")
    private String roleName;

    @ApiModelProperty("用户角色描述")
    private String roleDescription;
}
